<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3d变换</title>
    <style>
        body {
            height: 100%;
            width: 100%;
            perspective: 10000px;
        }

        .container {

            position: relative;
            transform-style: preserve-3d;
            margin: 0;
            width: 100%;
            perspective: 10000px;
            height: 600px;
            /* top: 150px; */
            display: flex;
            flex-direction: column;
            background-image: url(image/草地.webp);
            background-size: cover;
            /* overflow: hidden; */
        }

        .box1 {
            width: 50px;
            height: 50px;
            position: absolute;
            top: 20%;
            border-radius: 50%;
            animation: firstanimation 4s linear infinite;
            backface-visibility: hidden;
            background-image: url(image/足球.png);
            background-size: cover;
            margin: 0;

        }

        .door {
            width: 250px;
            height: 200px;
            background-image: url(image/龙门.png);
            background-size: cover;
            position: absolute;
            top: 65%;

        }

        .member {
            width: 100px;
            height: 135px;
            position: absolute;
            background-image: url(image/member.png);
            background-size: cover;
            align-self: flex-end;
            right: 25%;
            opacity: 0;
            animation: secondanimation 4s linear infinite;


        }


        @keyframes firstanimation {
            from {}

            50% {
                transform: translateX(1000px)rotate(360deg);

            }

            to {
                transform: translateY(500px)rotate(-360deg)translateZ(4000px);
            }


        }

        @keyframes secondanimation {
            to {
                opacity: 1;
            }


        }
    </style>
</head>

<body>
    <div class="container">
        <div class="box box1"></div>
        <div class="member"></div>
        <div class="door"></div>
    </div>
</body>

</html>